using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Colorprj.Account;
namespace Colorprj
{
    public partial class frmVchNoSearch : Form
    {
        private string _VchType;
       
        public string VchType
        {
            get
            {
                return _VchType;
            }
            set
            {

                _VchType = value;
            }
        }
        public frmVchNoSearch()
        {
            InitializeComponent();
        }

        public string ItemToRead
        {
            get
            {
                //List<Product> list = this.dataProvider.GetProductList();
                //Product product = list[this.itemsComboBox.SelectedIndex];
                return dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            }
        }
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            //MessageBox.Show(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()   );   
            this.DialogResult = DialogResult.OK;
            this.Close();


        }

        private void frmVchNoSearch_Load(object sender, EventArgs e)
        {
            AccountManager am = new AccountManager();
            dataGridView1.DataSource = am.GetAllVnos(VchType).Tables[0];
        }
    }
}